
#ifndef __USRAPP_H_INCLUDED__
#define __USRAPP_H_INCLUDED__

#include "component/port/jeg/vsfjeg.h"

struct usrapp_t
{
	int argc;
	char **argv;

	struct
	{
		struct vsf_stream_t stream_tx;
		struct vsf_stream_t stream_rx;
	} debug;

	uint8_t *rom;
	struct vsfjeg_t jeg;
};

extern struct usrapp_t usrapp;

void usrapp_initial_init(struct usrapp_t *app);
bool usrapp_cansleep(struct usrapp_t *app);
void usrapp_srt_init(struct usrapp_t *app);
void usrapp_srt_poll(struct usrapp_t *app);
void usrapp_nrt_init(struct usrapp_t *app);
void usrapp_nrt_poll(struct usrapp_t *app);

#endif		// __USRAPP_H_INCLUDED__
